<html>
  <head><title>SP Objects</title>
  <link rel="stylesheet" href="style.css" type="text/css" media="all" />
  <BASE target="mainFrame">
  <style type="text/css">
  <!--
  .item_show {}
  .item_hidden { display: none;}
  -->
  </style>

  <script type="text/javascript"> 
      function item_filter(inputbox)
      { 
        inStr = inputbox.value.toUpperCase();
        maskFlag = false;
        if (inStr.length>0 && inStr.charAt(0) == '*'){
                maskFlag = true;
                inStr = inStr.substring(1, inStr.length);
        }

        if (document.getElementById("maskFlagChkBox").checked) maskFlag = true;

        items=document.getElementById("db_items").getElementsByTagName("li")
        for (i=0;i<items.length;i++) {
          str = items[i].id;
          if ((maskFlag==false && str.indexOf(inStr)==0) ||
              (maskFlag==true && str.indexOf(inStr)>-1))
          {
              items[i].className = "item_show";            
          }else{
              items[i].className = "item_hidden";               
          }
        }
        return;
      } 	
  </script>  
  </head>
  <body bgcolor="#EAF4F4">

    <h1>Index</h1>
    <h3>Objects:</h3>
    <input size="30" type="text" onkeyup="javascript:item_filter(this);" /><br />
    <input id="maskFlagChkBox" type="checkbox" checked/> Generic match(*)
    <div id="db_items">
      <% unless @arr_index.nil? %>    
      <ul>      
        <% @arr_index.each do |item| %>
            <li id="<%= to_sname(item) %>"><b><%= gen_url(item, false) %></b></li>
        <% end %>
      </ul>
      <% end%>    
    </div>
  </body>
</html>
